DXL code to know if a document is selected

How can I know using DXL if a document in the current module is selected? I can navigate using DXL through all docuemnts in the current module but how do I know if the document is selected?
In the attached snapshot, using DXL I am able to retrieve all documents but cannot find a way of detecting if the document is selected (in the snapshot, docs 302_001 , 304_003 and 304_007)
Please help
Thanks
Alberto
SystemAdmin - Thu Sep 23 08:14:30 EDT 2010

Re: DXL code to know if a document is selected
llandale - Fri Sep 24 10:08:42 EDT 2010

Your words are not quite right. A 'Document' is the same as a 'Module'. You seem to be asking 'How can I tell which Modules are selected in the current Folder?'.

This DXL should get you going:

Skip skp = getSelectedItems()
//    Skip list of DOORS explorer selected items.
//      KEY: 'int' Position selected in right pane, always -1 when left pane is selected
//      DATA: is 'Item'
 
Item itm
int  Position
 
for itm in skp do
{  Position = (int key skp)
   print Position "\t" name(itm) "\n"
}
delete(skp)


Note the difference when the left pane is selected rather than the right pane. You don't care about the 'Position'.

 

 

  • Louie